package com.white.service.imp;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.white.bean.User;
import com.white.mapper.UserMapper;
import com.white.service.UserService;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Autowired
    UserMapper userMapper;

    @Override
    public User login(String name, String password) {
        return userMapper.login(name, password);
    }

    @Override
    public List<User> mySearch(String content) {
        return userMapper.mySearch(content);
    }

    @Override
    public List<User> getFollowByUserId(Long userId) {
        return userMapper.getFollowByUserId(userId);
    }

    @Override
    public List<User> getFanByUserId(Long userId) {
        return userMapper.getFanByUserId(userId);
    }

    @Override
    public List<User> getBlock(Long userId) {
        return userMapper.getBlock(userId);
    }
}
